package com.zhonghui.mes.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 来料检验
对象 mes_material_inspector
 *
 * @author zhonghui
 * @date 2022-05-22
 */
@ApiModel("来料检验")
public class MesMaterialInspectorVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @ApiModelProperty("编号")
    private Long id;

    /** 流水号 */
    @Excel(name = "流水号")
    @ApiModelProperty("流水号")
    private String serialNumber;

    /** 领料id */
    @Excel(name = "领料id")
    @ApiModelProperty("领料id")
    private Long applyId;

    /** 领料单号 */
    @Excel(name = "领料单号")
    @ApiModelProperty("领料单号")
    private String oddNumber;

    /** 物料id */
    @Excel(name = "物料id")
    @ApiModelProperty("物料id")
    private Long materialId;

    /** 物料名称 */
    @Excel(name = "物料名称")
    @ApiModelProperty("物料名称")
    private String materialName;

    /** 规格 */
    @Excel(name = "规格")
    @ApiModelProperty("规格")
    private String materialModel;

    /** 型号 */
    @Excel(name = "型号")
    @ApiModelProperty("型号")
    private String materialSpecifications;

    /** 单位 */
    @Excel(name = "单位")
    @ApiModelProperty("单位")
    private String materialUnit;

    /** 抽检数量 */
    @Excel(name = "抽检数量")
    @ApiModelProperty("抽检数量")
    private Double sampleQuantity;

    /** 需求数量 */
    @Excel(name = "需求数量")
    @ApiModelProperty("需求数量")
    private Double dosage;

    /** 已领数量 */
    @Excel(name = "已领数量")
    @ApiModelProperty("已领数量")
    private Double receivedQuantity;

    /** 质检标准id */
    @Excel(name = "质检标准id")
    @ApiModelProperty("质检标准id")
    private Long inspectionId;

    /** 检验值 */
    @Excel(name = "检验值")
    @ApiModelProperty("检验值")
    private Double inspectionValue;

    /** 检验项 */
    @ApiModelProperty("检验项")
    @ Excel(name = "检验项")
    private String checkItem;

    /** 标准值上限 */
    @ApiModelProperty("标准值上限")
    @Excel(name = "标准值上限")
    private Double upLimit;

    /** 标准值下限 */
    @ApiModelProperty("标准值下限")
    @Excel(name = "标准值下限")
    private Double lowerLimit;

    /** 检验结果 */
    @Excel(name = "检验结果")
    @ApiModelProperty("检验结果")
    private Integer result;

    /** 检验人id */
    @Excel(name = "检验人id")
    @ApiModelProperty("检验人id")
    private Long checkUserId;

    /** 检验人 */
    @Excel(name = "检验人")
    @ApiModelProperty("检验人")
    private String checkUserName;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("检验时间")
    private Date inspectorTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }
    public void setApplyId(Long applyId)
    {
        this.applyId = applyId;
    }

    public Long getApplyId()
    {
        return applyId;
    }
    public void setOddNumber(String oddNumber)
    {
        this.oddNumber = oddNumber;
    }

    public String getOddNumber()
    {
        return oddNumber;
    }
    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public Long getMaterialId()
    {
        return materialId;
    }
    public void setMaterialName(String materialName)
    {
        this.materialName = materialName;
    }

    public String getMaterialName()
    {
        return materialName;
    }
    public void setMaterialModel(String materialModel)
    {
        this.materialModel = materialModel;
    }

    public String getMaterialModel()
    {
        return materialModel;
    }
    public void setMaterialSpecifications(String materialSpecifications)
    {
        this.materialSpecifications = materialSpecifications;
    }

    public String getMaterialSpecifications()
    {
        return materialSpecifications;
    }
    public void setMaterialUnit(String materialUnit)
    {
        this.materialUnit = materialUnit;
    }

    public String getMaterialUnit()
    {
        return materialUnit;
    }
    public void setSampleQuantity(Double sampleQuantity)
    {
        this.sampleQuantity = sampleQuantity;
    }

    public Double getSampleQuantity()
    {
        return sampleQuantity;
    }
    public void setDosage(Double dosage)
    {
        this.dosage = dosage;
    }

    public Double getDosage()
    {
        return dosage;
    }
    public void setReceivedQuantity(Double receivedQuantity)
    {
        this.receivedQuantity = receivedQuantity;
    }

    public Double getReceivedQuantity()
    {
        return receivedQuantity;
    }
    public void setInspectionId(Long inspectionId)
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId()
    {
        return inspectionId;
    }
    public void setCheckItem(String checkItem)
    {
        this.checkItem = checkItem;
    }

    public String getCheckItem()
    {
        return checkItem;
    }
    public void setUpLimit(Double upLimit)
    {
        this.upLimit = upLimit;
    }

    public Double getUpLimit()
    {
        return upLimit;
    }
    public void setLowerLimit(Double lowerLimit)
    {
        this.lowerLimit = lowerLimit;
    }

    public Double getLowerLimit()
    {
        return lowerLimit;
    }
    public void setInspectionValue(Double inspectionValue)
    {
        this.inspectionValue = inspectionValue;
    }

    public Double getInspectionValue()
    {
        return inspectionValue;
    }
    public void setResult(Integer result)
    {
        this.result = result;
    }

    public Integer getResult()
    {
        return result;
    }
    public void setCheckUserId(Long checkUserId)
    {
        this.checkUserId = checkUserId;
    }

    public Long getCheckUserId()
    {
        return checkUserId;
    }
    public void setCheckUserName(String checkUserName)
    {
        this.checkUserName = checkUserName;
    }

    public String getCheckUserName()
    {
        return checkUserName;
    }
    public void setInspectorTime(Date inspectorTime)
    {
        this.inspectorTime = inspectorTime;
    }

    public Date getInspectorTime()
    {
        return inspectorTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("serialNumber", getSerialNumber())
                .append("applyId", getApplyId())
                .append("oddNumber", getOddNumber())
                .append("materialId", getMaterialId())
                .append("sampleQuantity", getSampleQuantity())
                .append("dosage", getDosage())
                .append("receivedQuantity", getReceivedQuantity())
                .append("inspectionId", getInspectionId())
                .append("inspectionValue", getInspectionValue())
                .append("result", getResult())
                .append("checkUserId", getCheckUserId())
                .append("checkItem", getCheckItem())
                .append("checkUserName", getCheckUserName())
                .append("inspectorTime", getInspectorTime())
                .append("upLimit", getUpLimit())
                .append("lowerLimit", getLowerLimit())
                .append("materialName", getMaterialName())
                .append("materialModel", getMaterialModel())
                .append("materialSpecifications", getMaterialSpecifications())
                .append("materialUnit", getMaterialUnit())
                .toString();
    }
}
